2020-2021 Sunseeker Telemetry and Lighting System
ucs_ex3_XT1SourcesACLK.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

void main (void)
 
void NMI_ISR (void)
 

Variables

uint16_t status
 

Function Documentation

◆ main()

void main ( void  )

Definition at line 71 of file ucs_ex3_XT1SourcesACLK.c.

References __no_operation().

◆ NMI_ISR()

void NMI_ISR ( void  )

Definition at line 125 of file ucs_ex3_XT1SourcesACLK.c.

References status.

Variable Documentation

◆ status

uint16_t status

XT1 sources ACLK. Toggles P1.0

This program demonstrates using XT1 to source ACLK ACLK = LFXT1 = 32,768Hz An external watch crystal between XIN & XOUT is required for ACLK

         MSP430F5438A
       -----------------
  /|\ |              XIN|-
   |  |                 | 32kHz
   ---|RST          XOUT|-
      |                 |
      |            P11.0|--> ACLK = ~32kHz
      |                 |
      |             P1.0|-->LED

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • UCS module
  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • None.

Definition at line 69 of file ucs_ex3_XT1SourcesACLK.c.

Referenced by NMI_ISR().